﻿using Hu.Core.Domains.Admin.Models;
using Hu.Core.Domains.Basic.Base;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;

namespace Hu.Core.Domains.Admin.Context
{
    public class HuAdminDbContext : HuBaseDbContext
    {
        public HuAdminDbContext(IConfiguration configuration) : base(configuration, connectionStringName: "DbHuUser")
        {
        }

        //public DbSet<HuUser> HuUsers { get; set; }
        //public DbSet<HuApiUser> HuApiUsers { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<HuUser>();
            modelBuilder.Entity<HuApiUser>();
            base.OnModelCreating(modelBuilder);
        }

    }
}
